<%--
  Created by IntelliJ IDEA.
  User: xdd
  Date: 2022/7/19
  Time: 9:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" pageEncoding="UTF-8" %>
<html>
<head>
    <title>登录处理页面</title>
</head>
<body>
<%
  request.setCharacterEncoding("UTF-8");
  String name = request.getParameter("userName");
  String pwd = request.getParameter("pwd");
  if("sa".equals(name) && "sa".equals(pwd)){
      // 如果密码和用户名成功，就跳转到另一个页面（请求重定向到一个新的URL上）
     request.getRequestDispatcher("welcome.jsp").forward(request,response);

  }
%>
</body>
</html>
